package org.lds.message.center.aliyun.enums;


import org.lds.message.center.common.enums.ErrCodeEnum;

public enum AliyunSmsErrorEnum implements ErrCodeEnum {
    PLUGIN_CLOSED("ALIYUN_SMS_PLUGIN_CLOSED", "AliyunSms插件已关闭"),
    REQUEST_INVALID("ALIYUN_SMS_REQUEST_INVALID", "AliyunSmsRequest不合法"),
    REQUESTS_INVALID("ALIYUN_SMS_REQUESTS_INVALID", "AliyunSmsRequests不合法"),

    CLIENT_CREATE_FAIL("CLIENT_CREATE_FAIL", "AliyunSmsClient创建失败"),

    PHONE_NUMBERS_INVALID("PHONE_NUMBERS_INVALID", "phoneNumbers不合法"),
    SIGN_NAME_INVALID("SIGN_NAME_INVALID", "signName不合法"),
    TEMPLATE_CODE_INVALID("TEMPLATE_CODE_INVALID", "templateCode不合法"),
    ;

    private String code;
    private String message;

    AliyunSmsErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getErrCode() {
        return code;
    }

    @Override
    public String getErrMsg() {
        return message;
    }

}
